<?php


namespace catchAdmin\visitPlan\search;


trait VisitPlanDetailSearch
{

    public function searchPatientNameAttr($query, $value, $data)
    {
        return $query->where('patientName', 'like', $value);
    }

    public function searchStatusAttr($query, $value, $data)
    {
        return $query->where("status", "=", (int)$value);
    }
}